.class public Lcom/instagram/android/login/b/o;
.super Lcom/instagram/e/b/b;
.source "LookupFragment.java"

# interfaces
.implements Lcom/instagram/a/b;


# instance fields
.field public final a:Lcom/instagram/android/d/j/a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/instagram/android/d/j/a",
            "<",
            "Lcom/instagram/android/login/d/h;",
            ">;"
        }
    .end annotation
.end field

.field public final b:Landroid/view/View$OnClickListener;

.field private c:Landroid/os/Handler;

.field private d:Landroid/widget/EditText;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 31
    invoke-direct {p0}, Lcom/instagram/e/b/b;-><init>()V

    .line 35
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/login/b/o;->c:Landroid/os/Handler;

    .line 39
    new-instance v0, Lcom/instagram/android/login/b/p;

    invoke-direct {v0, p0}, Lcom/instagram/android/login/b/p;-><init>(Lcom/instagram/android/login/b/o;)V

    iput-object v0, p0, Lcom/instagram/android/login/b/o;->a:Lcom/instagram/android/d/j/a;

    .line 119
    new-instance v0, Lcom/instagram/android/login/b/u;

    invoke-direct {v0, p0}, Lcom/instagram/android/login/b/u;-><init>(Lcom/instagram/android/login/b/o;)V

    iput-object v0, p0, Lcom/instagram/android/login/b/o;->b:Landroid/view/View$OnClickListener;

    .line 203
    return-void
.end method

.method private X()V
    .locals 4

    .prologue
    .line 127
    new-instance v0, Lcom/instagram/android/login/d/g;

    invoke-virtual {p0}, Lcom/instagram/android/login/b/o;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/login/b/o;->u()Landroid/support/v4/app/aj;

    move-result-object v2

    iget-object v3, p0, Lcom/instagram/android/login/b/o;->a:Lcom/instagram/android/d/j/a;

    invoke-direct {v0, v1, v2, v3}, Lcom/instagram/android/login/d/g;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;Lcom/instagram/android/d/j/a;)V

    invoke-direct {p0}, Lcom/instagram/android/login/b/o;->ab()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/instagram/android/login/d/g;->a(Ljava/lang/String;)V

    .line 129
    return-void
.end method

.method private Y()V
    .locals 3

    .prologue
    .line 173
    invoke-virtual {p0}, Lcom/instagram/android/login/b/o;->j()Landroid/support/v4/app/j;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->fragment_lookup_edittext:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    .line 174
    invoke-virtual {v0}, Landroid/widget/EditText;->requestFocus()Z

    .line 175
    invoke-virtual {p0}, Lcom/instagram/android/login/b/o;->j()Landroid/support/v4/app/j;

    move-result-object v1

    const-string v2, "input_method"

    invoke-virtual {v1, v2}, Landroid/support/v4/app/j;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/view/inputmethod/InputMethodManager;

    .line 176
    const/4 v2, 0x1

    invoke-virtual {v1, v0, v2}, Landroid/view/inputmethod/InputMethodManager;->showSoftInput(Landroid/view/View;I)Z

    .line 177
    return-void
.end method

.method private Z()V
    .locals 2

    .prologue
    .line 180
    invoke-virtual {p0}, Lcom/instagram/android/login/b/o;->j()Landroid/support/v4/app/j;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->fragment_lookup_edittext:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    .line 181
    invoke-virtual {p0}, Lcom/instagram/android/login/b/o;->j()Landroid/support/v4/app/j;

    move-result-object v1

    invoke-static {v1, v0}, Lcom/instagram/n/k;->a(Landroid/content/Context;Landroid/view/View;)V

    .line 182
    invoke-virtual {p0}, Lcom/instagram/android/login/b/o;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/j;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V

    .line 183
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/login/b/o;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 31
    invoke-direct {p0}, Lcom/instagram/android/login/b/o;->ab()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private aa()V
    .locals 2

    .prologue
    .line 223
    invoke-virtual {p0}, Lcom/instagram/android/login/b/o;->j()Landroid/support/v4/app/j;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->fragment_lookup_button:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->findViewById(I)Landroid/view/View;

    move-result-object v1

    .line 224
    if-eqz v1, :cond_0

    .line 225
    invoke-direct {p0}, Lcom/instagram/android/login/b/o;->ab()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    const/4 v0, 0x1

    :goto_0
    invoke-virtual {v1, v0}, Landroid/view/View;->setEnabled(Z)V

    .line 227
    :cond_0
    return-void

    .line 225
    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private ab()Ljava/lang/String;
    .locals 2

    .prologue
    .line 230
    invoke-virtual {p0}, Lcom/instagram/android/login/b/o;->j()Landroid/support/v4/app/j;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->fragment_lookup_edittext:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    .line 231
    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method static synthetic b(Lcom/instagram/android/login/b/o;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 31
    iget-object v0, p0, Lcom/instagram/android/login/b/o;->c:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic c(Lcom/instagram/android/login/b/o;)V
    .locals 0
    .parameter

    .prologue
    .line 31
    invoke-direct {p0}, Lcom/instagram/android/login/b/o;->X()V

    return-void
.end method

.method static synthetic d(Lcom/instagram/android/login/b/o;)V
    .locals 0
    .parameter

    .prologue
    .line 31
    invoke-direct {p0}, Lcom/instagram/android/login/b/o;->aa()V

    return-void
.end method


# virtual methods
.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 4
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v3, 0x0

    .line 140
    sget v0, Lcom/facebook/ax;->fragment_lookup:I

    invoke-virtual {p1, v0, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 141
    sget v0, Lcom/facebook/aw;->fragment_lookup_button:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v2, p0, Lcom/instagram/android/login/b/o;->b:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 143
    sget v0, Lcom/facebook/aw;->fragment_lookup_edittext:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/instagram/android/login/b/o;->d:Landroid/widget/EditText;

    .line 144
    iget-object v0, p0, Lcom/instagram/android/login/b/o;->d:Landroid/widget/EditText;

    new-instance v2, Lcom/instagram/android/login/b/x;

    invoke-direct {v2, p0, v3}, Lcom/instagram/android/login/b/x;-><init>(Lcom/instagram/android/login/b/o;Lcom/instagram/android/login/b/p;)V

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 145
    iget-object v0, p0, Lcom/instagram/android/login/b/o;->d:Landroid/widget/EditText;

    new-instance v2, Lcom/instagram/android/login/b/v;

    invoke-direct {v2, p0}, Lcom/instagram/android/login/b/v;-><init>(Lcom/instagram/android/login/b/o;)V

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V

    .line 159
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    iget-object v2, p0, Lcom/instagram/android/login/b/o;->d:Landroid/widget/EditText;

    invoke-interface {v0, v2}, Lcom/instagram/b/c;->a(Landroid/widget/TextView;)V

    .line 161
    return-object v1
.end method

.method public a()Lcom/instagram/a/a;
    .locals 1

    .prologue
    .line 237
    new-instance v0, Lcom/instagram/android/login/b/w;

    invoke-direct {v0, p0}, Lcom/instagram/android/login/b/w;-><init>(Lcom/instagram/android/login/b/o;)V

    return-object v0
.end method

.method public d(Landroid/os/Bundle;)V
    .locals 2
    .parameter

    .prologue
    .line 133
    invoke-super {p0, p1}, Lcom/instagram/e/b/b;->a(Landroid/os/Bundle;)V

    .line 134
    invoke-virtual {p0}, Lcom/instagram/android/login/b/o;->j()Landroid/support/v4/app/j;

    move-result-object v0

    sget v1, Lcom/facebook/aw;->fragment_lookup_edittext:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/j;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->requestFocus()Z

    .line 135
    return-void
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 268
    const-string v0, "password_lookup"

    return-object v0
.end method

.method public e_()V
    .locals 0

    .prologue
    .line 193
    invoke-direct {p0}, Lcom/instagram/android/login/b/o;->Y()V

    .line 194
    invoke-super {p0}, Lcom/instagram/e/b/b;->e_()V

    .line 195
    return-void
.end method

.method public f_()V
    .locals 0

    .prologue
    .line 199
    invoke-direct {p0}, Lcom/instagram/android/login/b/o;->Z()V

    .line 200
    invoke-super {p0}, Lcom/instagram/e/b/b;->f_()V

    .line 201
    return-void
.end method

.method public g_()V
    .locals 2

    .prologue
    .line 166
    invoke-super {p0}, Lcom/instagram/e/b/b;->g_()V

    .line 168
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/login/b/o;->d:Landroid/widget/EditText;

    invoke-interface {v0, v1}, Lcom/instagram/b/c;->b(Landroid/widget/TextView;)V

    .line 169
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/android/login/b/o;->d:Landroid/widget/EditText;

    .line 170
    return-void
.end method

.method public w()V
    .locals 0

    .prologue
    .line 187
    invoke-super {p0}, Lcom/instagram/e/b/b;->w()V

    .line 188
    invoke-direct {p0}, Lcom/instagram/android/login/b/o;->aa()V

    .line 189
    return-void
.end method
